home *** CD-ROM | disk | FTP | other *** search
- /*
- 9-30-92 • Brigham Stevens
- --------------------------
-
- main program for Slim.
- Slaps up a window and some menus.
- Change Drawing.c to effect window contents.
-
- */
-
-
- #include "EventLoop.h"
- #include "MenuDispatch.h"
-
- WindowPtr MainView;
-
- main(void)
- {
- InitToolBox(4);
- UnloadSeg(InitToolBox);
-
- BuildMenuBars();
-
- MainView = GetNewWindow(128,nil,(void*)-1L);
- SetPort(MainView);
-
- /* Run until Quit is selected */
- while(!Done) {
- MainEvent();
- if(!FrontWindow())
- MainView = nil;
- }
-
- }